package main

import (
	"fmt"
	"regexp"
	"strings"
)

func main() {
	aa := !strings.HasPrefix("volume.VolumeSource.HostPath.Path", "/pipeline-z/")
	fmt.Println(aa)
	//regex := "\\$\\((params\\..+)\\)"
	regex := "\\$\\(results\\.(.+)\\..+\\)"
	str := `abac $(results.aa.path) 
	1234 $(results.bbsd.a-1-2A.path)s
	`
	reg := regexp.MustCompile(regex)
	list := reg.FindAllString(str, -1)
	fmt.Println(list)
	s := reg.FindAllStringSubmatch(str, -1)
	fmt.Println(s)
}
